package de.tum.in.eist.poll.pub.shared;

import java.util.HashSet;
import java.util.Set;

public class Student extends User{
	
	private Set<Integer> lectures = new HashSet<Integer>();
	
	Student() {
		super();
	}
	
	public Student(int id, String name, Set<Integer> lectures) {
		super(id, name);
		this.lectures = lectures;
	}
	
	public Student(int id, String name, int[] lectures) {
		super(id, name);
		for(int i = 0; i < lectures.length; i++){
			this.lectures.add(lectures[i]);
		}
	}
	
	protected Set<Integer> getLectures() {
		return lectures;
	}
	
	public void addLectures(int lecture) {
		lectures.add(lecture);
	}

}
